<#import "/view/template/index.html" as ui/>
<div class="page-bar">
	<ul class="page-breadcrumb">
		<li><i class="fa fa-location-arrow"></i> <b>当前位置：系统管理</b> <i
			class="fa fa-angle-right"></i> <b>用户管理</b></li>
	</ul>
</div>
<div class="row">
	<div class="col-md-12">
		<form id="queryform" class="form-horizontal">
			<@ui.datatable 	
				formid="queryform"
				target="/admin/blog/listData"
				titles=['ID','用户名','昵称','角色名称','登陆ip','上次登陆时间','联系方式','E-mail','状态']
				rows = ['id','id','uname','nickname','rolename','loginip','lastlogin','contact','email','status']
				operations = [
							{'remote':false,'tag':'del','action':'/admin/adminuser/delete','color':'red','title':'删除','icon':'trash-o','msg':'是否删除？'},
							{'remote':true,'tag':'edit','action':'/admin/adminuser/get','color':'blue','title':'修改','icon':'edit'}
						]
				formatter =[
					{'fun':'function(data, type, row) {
							if(data==0){
								return "<span class=\'label label-primary\'>正常</span>";
							}else{
								return "<span class=\'label label-default\'>冻结</span>";
							}
						}','tg':'9'
					}
				]
				batch=true
				title="所有用户" batchAction =[
					{'remote':false,'label':'批量删除','tag':'batchdel','action':'/admin/adminuser/delete','icon':'times','msg':'确定删除所选项？删除后不可回复！','select':true},
					{'remote':true,'label':'增加','tag':'add','action':'/admin/adminuser/add','icon':'pencil'}
				]>
				<div class="row">
						<input type="text" name="uname" class="form-control" placeholder="Admin">
						<input type="text" class="form-control between" name="dattt" onclick="WdatePicker({skin:'twoer'})" readonly="readonly">
						- <input type="text" class="form-control between" name="dattt" onclick="WdatePicker({skin:'twoer'})" readonly="readonly">
				</div>
			</@ui.datatable>
		</form>
	</div>
</div>
